﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace produccion.clases
{
    class CLSTALTAL:ObservableObject
    {


        private int _CODTJE_TAL;
        public int CODTJE_TAL{
        
        get{return _CODTJE_TAL;}
        set{_CODTJE_TAL=value;
        RaisePropertyChangedEvent("CODTJE_TAL");
        }

        }

        private string _CODTAL_TAL;
        public string CODTAL_TAL{
        get{return _CODTAL_TAL;}
        set{_CODTAL_TAL=value;
        RaisePropertyChangedEvent("CODTAL_TAL");
        }
        }

        private int _POSTAL_TAL;
        public int POSTAL_TAL {
            get { return _POSTAL_TAL; }
            set { _POSTAL_TAL = value;
            RaisePropertyChangedEvent("POSTAL_TAL");
            }
        }

        MDOgeneral mod = new MDOgeneral();
        public DataTable consTallajes() {
            try {
                string query = "select CODTJE_TAL,CODTAL_TAL,POSTAL_TAL from taltal order by CODTJE_TAL,POSTAL_TAL";
                return mod.consulta(query);
            }
            catch (Exception ex) { throw ex; }
        }

    }
}
